﻿using System;
using Microsoft.Xna.Framework;

namespace Terraria.UI.Gamepad
{
	// Token: 0x02000125 RID: 293
	public class UILinkPoint
	{
		// Token: 0x1400002C RID: 44
		// (add) Token: 0x06000CE0 RID: 3296 RVA: 0x003F5924 File Offset: 0x003F3B24
		// (remove) Token: 0x06000CE1 RID: 3297 RVA: 0x003F595C File Offset: 0x003F3B5C
		public event Func<string> OnSpecialInteracts;

		// Token: 0x170000DC RID: 220
		// (get) Token: 0x06000CE2 RID: 3298 RVA: 0x0000D05D File Offset: 0x0000B25D
		// (set) Token: 0x06000CE3 RID: 3299 RVA: 0x0000D065 File Offset: 0x0000B265
		public int Page { get; private set; }

		// Token: 0x06000CE4 RID: 3300 RVA: 0x0000D06E File Offset: 0x0000B26E
		public UILinkPoint(int id, bool enabled, int left, int right, int up, int down)
		{
			this.ID = id;
			this.Enabled = enabled;
			this.Left = left;
			this.Right = right;
			this.Up = up;
			this.Down = down;
		}

		// Token: 0x06000CE5 RID: 3301 RVA: 0x0000D0A3 File Offset: 0x0000B2A3
		public void SetPage(int page)
		{
			this.Page = page;
		}

		// Token: 0x06000CE6 RID: 3302 RVA: 0x0000D0AC File Offset: 0x0000B2AC
		public void Unlink()
		{
			this.Left = -3;
			this.Right = -4;
			this.Up = -1;
			this.Down = -2;
		}

		// Token: 0x06000CE7 RID: 3303 RVA: 0x0000D0CD File Offset: 0x0000B2CD
		public string SpecialInteractions()
		{
			if (this.OnSpecialInteracts != null)
			{
				return this.OnSpecialInteracts();
			}
			return string.Empty;
		}

		// Token: 0x04001165 RID: 4453
		public int ID;

		// Token: 0x04001166 RID: 4454
		public bool Enabled;

		// Token: 0x04001167 RID: 4455
		public Vector2 Position;

		// Token: 0x04001168 RID: 4456
		public int Left;

		// Token: 0x04001169 RID: 4457
		public int Right;

		// Token: 0x0400116A RID: 4458
		public int Up;

		// Token: 0x0400116B RID: 4459
		public int Down;
	}
}
